/** 地址列表功能模块 */
export const addressModuleMixin = {
	data() {
		return {
			addressData: [],
			addressLoading: true,
			empty: false,
		}
	},
	onLoad() { this.getaddressFn(); },
	methods: {
		async getaddressFn() {
			this.addressLoading = true;
			try {
				const res = await this.$post('6544d0c0718a8', {});
				this.addressData = res.data || [];
				this.empty = !this.addressData.length;
			} catch (e) {}
			this.addressLoading = false;
		}
	}
};